# encoding: utf-8
import memcache

cache = memcache.Client(["127.0.0.1:11211"])

# 设置数据
def set(key, value, time=60 * 60):
    return cache.set(key, value, time)

# 获取数据
def get(key):
    return cache.get(key)

# 删除数据
def delete(key):
    return cache.delete(key)